package ui;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.image.Image;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
import javafx.scene.Scene;
import service.UserClientService;

public class Main extends Application{
    public static UserClientService userClientService=new UserClientService();//用于登录服务器
    public static void main(String[] args) {
	    launch(args);
    }
    public void start(Stage stage) throws Exception{
      System.out.println(System.getProperty("user.dir"));
      Pane root= FXMLLoader.load(getClass().getResource("/Interface/Login.fxml"));
      Scene scene=new Scene(root);
      stage.setScene(scene);
      stage.getIcons().add(new Image("/Interface/Icon.png"));
	  stage.setTitle("超星学习通");
      stage.setResizable(false);
	  stage.show();
    }
}